package com.ruoyi.web.foreigncurrency.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.foreigncurrency.mapper.ForeigncurrencyMapper;
import com.ruoyi.web.foreigncurrency.domain.Foreigncurrency;
import com.ruoyi.web.foreigncurrency.service.IForeigncurrencyService;

/**
 * 币种名称Service业务层处理
 * 
 * @author czr
 * @date 2024-09-28
 */
@Service
public class ForeigncurrencyServiceImpl implements IForeigncurrencyService 
{
    @Autowired
    private ForeigncurrencyMapper foreigncurrencyMapper;

    /**
     * 查询币种名称
     * 
     * @param iId 币种名称主键
     * @return 币种名称
     */
    @Override
    public Foreigncurrency selectForeigncurrencyByIId(Long iId)
    {
        return foreigncurrencyMapper.selectForeigncurrencyByIId(iId);
    }

    /**
     * 查询币种名称列表
     * 
     * @param foreigncurrency 币种名称
     * @return 币种名称
     */
    @Override
    public List<Foreigncurrency> selectForeigncurrencyList(Foreigncurrency foreigncurrency)
    {
        return foreigncurrencyMapper.selectForeigncurrencyList(foreigncurrency);
    }

    /**
     * 新增币种名称
     * 
     * @param foreigncurrency 币种名称
     * @return 结果
     */
    @Override
    public int insertForeigncurrency(Foreigncurrency foreigncurrency)
    {
        return foreigncurrencyMapper.insertForeigncurrency(foreigncurrency);
    }

    /**
     * 修改币种名称
     * 
     * @param foreigncurrency 币种名称
     * @return 结果
     */
    @Override
    public int updateForeigncurrency(Foreigncurrency foreigncurrency)
    {
        return foreigncurrencyMapper.updateForeigncurrency(foreigncurrency);
    }

    /**
     * 批量删除币种名称
     * 
     * @param iIds 需要删除的币种名称主键
     * @return 结果
     */
    @Override
    public int deleteForeigncurrencyByIIds(Long[] iIds)
    {
        return foreigncurrencyMapper.deleteForeigncurrencyByIIds(iIds);
    }

    /**
     * 删除币种名称信息
     * 
     * @param iId 币种名称主键
     * @return 结果
     */
    @Override
    public int deleteForeigncurrencyByIId(Long iId)
    {
        return foreigncurrencyMapper.deleteForeigncurrencyByIId(iId);
    }
}
